<template>
	<view>
		<view class="p-30">
			<u-swiper :list="list1" indicator indicatorMode="line"></u-swiper>
			<view class="mt-30">
				<u-parse :content="content"></u-parse>
			</view>
		</view>
		
		<login ref="login" />
		<page-tabbar :value="0" />
	</view>
</template>

<script>
	import commonMixin from '@/mixins/common.js';
	export default {
		mixins: [commonMixin],
		data() {
			return {
				list1: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				],
				content: `
									<p>关于代理关于代理关于代理关于代理</p>
									
								`
			}
		},
		onLoad(e) {
			var scene = decodeURIComponent(e.scene);
			if (e.user_id) this.$store.state.p_id = e.user_id;
			if (scene) this.$store.state.p_id = scene;
			if (this.isLogin) {
				if (this.p_id) this.$store.dispatch('setBindParent', {
					'user_id': this.p_id
				})
			}
			this.initData();
		},
		methods:{
			initData() {}
		}
	}
</script>